//
//  SuanMaTopView.m
//  DBAChain
//
//  Created by Evan on 2018/9/8.
//  Copyright © 2018 Evan. All rights reserved.
//

#import "SuanMaTopView.h"
#import "CommonData.h"
#import <Masonry.h>

@implementation SuanMaTopView

-(instancetype)init{
    self = [super init];
    if (self) {
         self.backgroundColor = LCFromRGB(23, 29, 45);
        
        UILabel *labelTitle1 = [[UILabel alloc]init];
        [self addSubview:labelTitle1];
        [labelTitle1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(21);
            make.top.offset(13);
            make.height.offset(15);
            make.width.offset(100);
        }];
        labelTitle1.textAlignment = NSTextAlignmentCenter;
        labelTitle1.textColor = [UIColor whiteColor];
        labelTitle1.text = @"名称/编号";
        labelTitle1.font = [UIFont fontWithName:@"PingFang-SC-Medium" size:14];
        
        UILabel *labelTitle2 = [[UILabel alloc]init];
        [self addSubview:labelTitle2];
        [labelTitle2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(self);
            make.top.offset(13);
            make.height.offset(15);
            make.width.offset(100);
        }];
        labelTitle2.textAlignment = NSTextAlignmentCenter;
        labelTitle2.textColor = [UIColor whiteColor];
        labelTitle2.text = @"运行时间";
        labelTitle2.font = [UIFont fontWithName:@"PingFang-SC-Medium" size:14];
        
        UILabel *labelTitle3 = [[UILabel alloc]init];
        [self addSubview:labelTitle3];
        [labelTitle3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(self.mas_right).offset(-21);
            make.top.offset(13);
            make.height.offset(15);
            make.width.offset(100);
        }];
        labelTitle3.textAlignment = NSTextAlignmentCenter;
        labelTitle3.textColor = [UIColor whiteColor];
        labelTitle3.text = @"收益(GTE)";
        labelTitle3.font = [UIFont fontWithName:@"PingFang-SC-Medium" size:14];
    }
    return self;
}

@end
